package com.leyou.order.mapper;

import com.leyou.common.mapper.BaseMapper;
import com.leyou.order.entity.OrderDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author: wangzibeng
 * Date: 2019/5/20 0020
 * Time: 9:58
 */

@Repository
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {
    /**
     * 批量新增 detail
     *
     * @param details
     * @return
     */
    int insertDetails(@Param("details") List<OrderDetail> details);
}
